METHOD:  String::anchor

object.anchor("name")

This method is used to create an HTML anchor in a document.

The following code creates an HTML anchor called "newAnchor" and writes the contents of the "myString" String object to the document which can then be used as a target for a hyperlink. This has identical results to using the HTML code: <A NAME="newAnchor">Anchor</A>

Code:
myString = new String("Anchor")
document.write (myString.anchor("newAnchor"))

Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information